/**
 * Created by lenovo on 2017/11/22.
 */
$(document).ready(function(){
    checkLogin();
});

function checkLogin() {
    $.get("check_login", function(result){
        if(result=='1'){
            $("#isLogin").on('click',function () {
                window.location.href="information.html";
            });
            $("#isLogin").css("background-image","url('/fs/images/phone/login_icon/logined.png')");
        }else{
            $("#isLogin").on('click',function () {
                window.location.href="/fs";
            });
            $("#isLogin").css("background-image","url('/fs/images/phone/login_icon/no_login.png')");
        }
    });
}